﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="user.aspx.cs" Inherits="WebApp.admin.user.user" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>
        <%Response.Write(GetTitle()); %>
    </title>
    <link href="../css/skin.css" rel="stylesheet" type="text/css" />
</head>

<script type="text/javascript" src="../js/main.js"></script>
<script type="text/javascript" src="../js/jquery.min.js"></script>
<script type="text/javascript" src="../js/jquery.js"></script>

<body class="body">
    <table class="main" cellpadding="0" cellspacing="0">
        <tr>

            <td class="td_middle_middle">
                <div class="maincontent">
                <div  class="navgater"><img src="../images/module.gif" width="20" height="22" alt=""/>
所在位置：会员列表->
<%= Request.QueryString["ot"] == "ed" ? "会员编辑" : "会员添加"%>

<a style=" display:block; float:right;" href="javascript:location.href=document.referrer;" ><img src="../images/history.gif" border="0" /></a>
</div>
                    <form id="form1" runat="server">
                        <table cellpadding="0" cellspacing="0" style="width: 100%">
                            <tr>
                                <td class="td_title">
                                    用户名：</td>
                                <td class="td_content">
                                    <input id="txtUserName" name="userName" type="text" runat="server" maxlength="20" style="-ime-mode:disabled" onpaste="return false" onkeyup="value=value.replace(/[^\w\.\/]/ig,'')" />*最多20个字符</td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    密码：</td>
                                <td class="td_content">
                                    <input id="txtUserPwd" name="userPwd" type="password" runat="server" class="password" />*</td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    确定密码：</td>
                                <td class="td_content">
                                    <input id="txtAgainPwd" name="againPwd" type="password" class="password" />*</td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    E_Mail：</td>
                                <td class="td_content">
                                    <input id="txtEmail" name="email" type="text" runat="server" />*最多50个字符</td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    积分：</td>
                                <td class="td_content">
                                    <input id="txtPayPoints" name="payPoints" type="text" runat="server" onpaste="return false"
                                        onkeyup="this.value=this.value.replace(/\D/g,'')" onafterpaste="this.value=this.value.replace(/\D/g,'')"
                                        value="0" />*</td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    预存款：</td>
                                <td class="td_content">
                                    <input id="txtMoney" name="money" type="text" runat="server" value="0" onkeyup="if(isNaN(value))execCommand('undo')"
                                        onafterpaste="if(isNaN(value))execCommand('undo')" />*</td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    会员等级：</td>
                                <td class="td_content">
                                    <select id="selectUserRank" name="userRank">
                                    <option value="0">请选会员等级...</option>
                                        <% Response.Write(UserRankBind()); %>
                                    </select>
                                </td>
                            </tr>
                            <tr>
                                <td class="td_title">
                                    是否启用：</td>
                                <td class="td_content">
                                    <input id="rdState1" name="state" type="radio" value="1" runat="server" />是&nbsp;&nbsp;<input
                                        id="rdState0" name="state" type="radio" value="0" runat="server" />否</td>
                            </tr>
                            <tr id="trRegisterTime">
                                <td class="td_title">
                                    注册日期：</td>
                                <td class="td_content">
                                    <%=registerTime %>
                                </td>
                            </tr>
                            <tr id="trRegisterIP">
                                <td class="td_title">
                                    注册IP：</td>
                                <td class="td_content">
                                    <%=registerIP%>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2">
                                    <asp:Button ID="btnSubmit" runat="server" Text="确  定" CssClass="formButton" OnClick="btnSubmit_Click"
                                        OnClientClick="return checkUserForm();" />&nbsp;&nbsp;&nbsp;&nbsp;
                                         <input id="btnBack" type="button" class="formButton" value=" 返  回 " onclick="javascript:location.href=document.referrer;"  /></td>
                            </tr>
                        </table>
                    </form>
                </div>
            </td>
        </tr>

    </table>
</body>
</html>
